/**
 * 文件名：BdTransactionRepoImpl.java
 * 版权：Copyright Lightkit All Rights Reserved.
 * 描述：
 */
package com.lightkits.wms.domain.arrivalnotice.repo.impl;

import com.lightkits.common.db.entity.BdTransaction;
import com.lightkits.wms.domain.arrivalnotice.repo.BdTransactionDBService;
import com.lightkits.wms.domain.arrivalnotice.repo.BdTransactionRepo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jie.ao@hand-china.com
 * @create 2019-07-15 13:43
 * @desc
 **/
@Repository
public class BdTransactionRepoImpl implements BdTransactionRepo {
    private final BdTransactionDBService service;
    public BdTransactionRepoImpl(BdTransactionDBService service) {
        this.service = service;
    }
    @Override
    public void updateBatch(List<BdTransaction> modifyList) {
        service.updateAllColumnBatchById(modifyList);
    }

    @Override
    public void update(BdTransaction bdTransaction) {
        service.updateById(bdTransaction);
    }

    @Override
    public void insert(BdTransaction bdTransaction) {
        service.insert(bdTransaction);
    }

    @Override
    public void insertBatch(List<BdTransaction> insertList) {
        service.insertBatch(insertList);
    }
}
